package com.voiceblog.dao;

import java.util.Date;
import java.util.List;

import org.springframework.dao.DataAccessException;

import com.voiceblog.model.Blog;
import com.voiceblog.model.Users;

public interface IBlogDAO {
	List findAll() throws DataAccessException;

	Blog findById(int id);

	void save(Blog transientInstance);

	List findTopBlogs(final int num);

	List findRecentlyBlogs(final int num, Users user);
    List findByProperty(String account, Object value);
	 List findRecentlyBlogs(String name);
	void updateBlog(Blog blog);
	List findNextBlogs(String name,Blog blog);
	 List findPreviousBlogs(String name,Blog blog);
	 void deleteBlog(Blog blog);

	List findBlogByTitle(String title);
    List findBlogByDate(Date date);
    
    List findByHql( String hql);
    void editBlog(Blog blog);

}
